<template>
  <div class="custom-empty">
    <img :src="emptyImg" />
    <div class="label">{{ tipLabel }}</div>
    <slot></slot>
  </div>
</template>

<script setup lang="ts">
import img from "@/assets/images/custom-empty.jpg";
defineProps({
  emptyImg: {
    type: String,
    default: img
  },
  tipLabel: {
    type: String,
    default: "这里暂时什么都没有"
  }
});
</script>

<style scoped lang="scss">
.custom-empty {
  width: 160px;
  img {
    width: 160px;
    height: 160px;
  }
  .label {
    text-align: center;
    font-size: 14px;
    color: #909399;
    line-height: 24px;
  }
}
</style>
